package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 试题表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "subject")
public class Subject {

    /**
     * 试题id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试题名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 选项A
     */
    @TableField(value = "optionA")
    private String optionA;

    /**
     * 选项B
     */
    @TableField(value = "optionB")
    private String optionB;

    /**
     * 选项C
     */
    @TableField(value = "optionC")
    private String optionC;

    /**
     * 选项D
     */
    @TableField(value = "optionD")
    private String optionD;

    /**
     * 正确结果
     */
    @TableField(value = "right_result")
    private String rightResult;

    /**
     * 题目分值
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 题目类型
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 关联课程表
     */
    @TableField(value = "course_id")
    private Integer courseId;


    /**
     * 关联年级表
     */
    @TableField(value = "grade_id")
    private Integer gradeId;

    /**
     * 难度等级
     */
    @TableField(value = "easy")
    private Integer easy;

    @TableField(value = "division")
    private Integer division;

}
